Skip to content

fix: run install.sh again when a release download fails on a status curl does not retry - #38

Closed
sileht wants to merge 1 commit into
mainfrom
devs/sileht/mrgfy-14054-setup-cli-rerun-install/run-install-sh-again-release-download-fails--7e6ba77f
Closed

sileht wants to merge 1 commit into
mainfrom
devs/sileht/mrgfy-14054-setup-cli-rerun-install/run-install-sh-again-release-download-fails--7e6ba77f

Conversation

@sileht

@sileht sileht commented Dec 1, 2026

Copy link
Copy Markdown
Member

On 2026-12-01 GitHub answered about one in ten downloads of the mergify-cli
release tarball with a 618. install.sh's curl --retry retries timeouts and
408, 429, 500, 502, 503 and 504 answers only, so each 618 failed the step, and
the job with it, on the first request. The action's own retry of its install.sh
fetch does not reach the downloads install.sh makes.

The action now runs install.sh again when it fails, waiting 10, 20 then 40
seconds, four tries in all. That covers every mergify_cli_version: the action
fetches install.sh at the pinned version's tag, so a fix in install.sh would
only reach the versions released after it. It also covers the other failures
curl does not retry: a refused or reset connection, a TLS error, a download
cut short that fails the checksum. Each failed try leaves a warning naming it,
and once the tries run out the step fails below install.sh's own errors.

A try that failed after two minutes or more is not run again. A failure that
late comes after curl's own retries of a server error, which last four to five
minutes per download, and another try would add as many minutes again to a job
whose timeout may be sized for one. A failure that is not transient, such as a
platform with no published binary, now takes 70 seconds longer to fail.

The new test-install-rerun job points install.sh at a local server through its
MERGIFY_BASE_URL. The server answers 618 to every tarball request under one
path, where the install must fail after four tries, and to the first one under
another, where it must recover. It redirects every other request to the release
on GitHub. The job installs mergify-cli 2026.11.26 and Renovate does not bump
it: its install.sh makes a single request on a 618, where a later one that
retries the 618 itself would leave the re-run untested.

Nothing is released on merge: release.yaml releases on its own only when the
default mergify-cli version changes, so this ships in the release that the next
mergify-cli bump cuts.

Related to MRGFY-14054

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

…url does not retry

On 2026-12-01 GitHub answered about one in ten downloads of the mergify-cli
release tarball with a 618. install.sh's `curl --retry` retries timeouts and
408, 429, 500, 502, 503 and 504 answers only, so each 618 failed the step, and
the job with it, on the first request. The action's own retry of its install.sh
fetch does not reach the downloads install.sh makes.

The action now runs install.sh again when it fails, waiting 10, 20 then 40
seconds, four tries in all. That covers every `mergify_cli_version`: the action
fetches install.sh at the pinned version's tag, so a fix in install.sh would
only reach the versions released after it. It also covers the other failures
curl does not retry: a refused or reset connection, a TLS error, a download
cut short that fails the checksum. Each failed try leaves a warning naming it,
and once the tries run out the step fails below install.sh's own errors.

A try that failed after two minutes or more is not run again. A failure that
late comes after curl's own retries of a server error, which last four to five
minutes per download, and another try would add as many minutes again to a job
whose timeout may be sized for one. A failure that is not transient, such as a
platform with no published binary, now takes 70 seconds longer to fail.

The new test-install-rerun job points install.sh at a local server through its
MERGIFY_BASE_URL. The server answers 618 to every tarball request under one
path, where the install must fail after four tries, and to the first one under
another, where it must recover. It redirects every other request to the release
on GitHub. The job installs mergify-cli 2026.11.26 and Renovate does not bump
it: its install.sh makes a single request on a 618, where a later one that
retries the 618 itself would leave the re-run untested.

Nothing is released on merge: release.yaml releases on its own only when the
default mergify-cli version changes, so this ships in the release that the next
mergify-cli bump cuts.

Related to MRGFY-14054

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: I7e6ba77f3010eded84e03dd26295c427b8db7313
@mergify
mergify Bot had a problem deploying to Mergify Merge Protections December 1, 2026 11:05 Failure
@mergify

mergify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 2 of 6 protections blocking · waiting on 👀 reviews

Protection Waiting on
🔴 👀 Review Requirements 👀 reviews
🔴 🔎 Reviews 👀 reviews
🟢 🤖 Continuous Integration —
🟢 Enforce conventional commit —
🟢 📕 PR description —
🟢 🚦 Auto-queue —

🔴 👀 Review Requirements

Waiting for

  • #approved-reviews-by>=1
This rule is failing.
  • any of:
    • #approved-reviews-by>=1
    • author = dependabot[bot]
    • author = mergify-ci-bot
    • author = renovate[bot]

🔴 🔎 Reviews

Waiting for

  • #review-requested = 0
This rule is failing.
  • #review-requested = 0
  • #changes-requested-reviews-by = 0
  • #review-threads-unresolved = 0

Show 4 satisfied protections

🟢 🤖 Continuous Integration

  • all of:
    • check-success=all-greens

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:

🟢 📕 PR description

  • body ~= (?ms:.{48,})

🟢 🚦 Auto-queue

When all merge protections are satisfied, this pull request will be queued automatically.

@mergify
mergify Bot requested a review from a team December 1, 2026 11:07
@sileht

sileht commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Closed: the retry belongs in install.sh, not in the action (https://github.com/Mergifyio/mergify-ci-integrations/pull/3115 retries any server error there). The next mergify-cli release ships it, and setup-cli's default bump carries it.

@sileht sileht closed this Dec 1, 2026

This branch had an error being deployed

1 failed deployment
Mergify Merge Protections — 435fc988 Deployed Dec 1, 2026 by mergify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant